package airBattle
{
import airBattle.IAirState;

/**
 * @author daichangxin
 */
public class MoveState implements IAirState
{
	private var _context:AirContext;
	
	public function MoveState(context:AirContext)
	{
		_context = context;
	}
	
	public function move() : void
	{
		trace("you are already moving...");
	}

	public function death() : void
	{
		trace("go to death");
		_context.setState(_context.getDeathState());
	}
	
	public function idle():void
	{
		trace("stop moving and idle()");
		_context.setState(_context.getIdleState());
	}
	
	public function attack():void
	{
		trace("stopMoving and attack()");
		_context.setState(_context.getAttackState());
	}
	
	public function attacked():void
	{
		trace("正在移动，不受受击影响");
	}
}
}
